<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台帐号添加</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<script language="javascript">/**
 * 提交检测
 */
function doSubmit ()
{
	var username  = $('username');
	var password  = $('password');
	var password1 = $('password2');
	if (username.value == '') {
		alert("请填写帐号");
		username.focus();
		return false;
	}
	
	if (password.value == '') {
		alert("请填写密码");
		password.focus();
		return false;
	}
	
	if (password2.value == '') {
		alert("请填写重复密码");
		password2.focus();
		return false;
	}
	
	if (password.value != password2.value) {
		alert("两次密码不一致");
		password.focus();
		return false;
	}
	
	return true;
}


$ = function (o) {return document.getElementById(o);}
</script>
<body>
<form method="post" action="" >
<table class="tableA"  width="32%" border="1" align="center">
  <tr>
    <td colspan="2">后台帐号添加</td>
  </tr>
    <tr>
    <td width="9%" class="tdA" nowrap="nowrap">用户名</td>
    <td width="91%"><input name="username" type="text" id="username" size="20" maxlength="15" /></td>
  </tr>
  <tr>
    <td class="tdA">密码</td>
    <td nowrap><input name="password" type="text" id="password" size="20" value="<?php echo $this->password;?>"/>随机密码，可修改</td>
  </tr>
  <tr>
    <td class="tdA" nowrap="nowrap">确认密码</td>
    <td><input name="password2" type="text" id="password2" size="20" value="<?php echo $this->password;?>"/></td>
  </tr>
  <tr>
    <td colspan="2" align="center" class="tdI"><input class="btn_submit"   type="submit" name="Submit2" value="确认" onclick='javascript:return doSubmit();'/>
    <input class="btn_std"  type="button" name="Submit22" value="返回" onclick='javascript:location.href="<?php echo $this->url($this->baseUrl, 'privilege', 'adminmanage');?>"'/></td>
  </tr>
</table>
</form>
</body>
</html>
